package com.quanyan.comment.service;

import com.quanyan.api.APIResponse;
import com.quanyan.comment.reqeust.ReqBaseParam;
import com.quanyan.comment.response.RespCommentAvg;
import com.quanyan.comment.response.RespCommentSum;

import java.util.List;

/**
 * Created by Administrator on 2016/7/18.
 */
public interface CommentSumService {


    /**
     * 查询某个业务评论汇总
     * @param reqBaseParam
     * @return
     */
    public RespCommentSum queryCommentSum(ReqBaseParam reqBaseParam);


    /**
     * 增加汇总信息
     * @param reqBaseParam
     * @param starScore
     */
    public void addCommentSum(ReqBaseParam reqBaseParam,int starScore,int commentType);


    /**
     * 批量查询某个业务下的 所有业务星级
     * @param reqBaseParam
     * @return
     */
    public APIResponse<List<RespCommentSum>> batchQueryClubCommentSum(ReqBaseParam reqBaseParam);


    /**
     * 删除
     * @param reqBaseParam
     */
    public void updateCommentSum(ReqBaseParam reqBaseParam);


    /**
     * 算平均值
     * @param reqBaseParam
     * @return
     */
    public RespCommentAvg getAvgByBusinessId(ReqBaseParam reqBaseParam);

    }
